package com.zzy.blog.service.impl;

import java.util.List;

import com.zzy.blog.dao.LoginDao;
import com.zzy.blog.dao.pojo.Memory;
import com.zzy.blog.dao.pojo.User;
import com.zzy.blog.service.LoginService;

public class LoginServiceImpl implements LoginService{
	
	private LoginDao loginDao = null;

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	public LoginDao getLoginDao() {
		return loginDao;
	}

	public boolean checkUser(User user) {
		return loginDao.checkUser(user);
	}

	public List<Memory> getMemory() {
		return loginDao.getMemory();
	}

	public void save(Memory m) {
		loginDao.save(m);
	}

	public void save(User user) {
		loginDao.save(user);
	}

}
